package OperatorTest;
/*
算数运算符：+ - * / % ++ --
 */
public class OperatorTest1 {
    public static void main(String[] args){
        int a = 10;
        int b = 3;
        System.out.println(a + b);
        System.out.println(a - b);
        System.out.println(a * b);
        System.out.println(a / b);
        System.out.println(a % b);
        //++:当++出现在变量后，会先做赋值运算，再自加1。当++出现在变量前时，会先进行自加1的运算前，然后再赋值
        int i = 10;
        System.out.println(i++);
        System.out.println(++i);
     }
}
